KERNEL_PATH=../../02day_env/linux-5.4.31
ifeq ($(KERNELRELEASE),)
all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	arm-linux-gnueabihf-gcc test.c -o test -Wall
	cp led_dev.ko led_drv.ko test /nfs/rootfs/myModule
clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean
	rm test
else
	obj-m += led_drv.o
	obj-m += led_dev.o
endif